﻿using Abp.Domain.Entities;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace HiShing.TongDanGuanJia.Devices
{
    public class Device : Entity<string>
    {
        private string _id;

        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public override string Id { get => _id; set => _id = value; }

        public string DisplayName { get; set; }
        public string DeviceId { get; set; }

        public string ProductKey { get; set; }

        public DateTime RegisterTime { get; set; }
        public int DeviceTypeId { get; set; }

        [ForeignKey("DeviceTypeId")]
        public DeviceType DeviceType { get; set; }
    }
}
